import request from '@/router/axios';

export const getRuleTemplate = (id) => {
  return request({
    url: '/api/data-quality/ruleTemplate/getRuleTemplate',
    method: 'get',
    params: {
      id
    }
  })
}

export const pageList = (current, size, params) => {
  return request({
    url: '/api/data-quality/ruleTemplate/pageList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const removeRuleTemplates = (ids) => {
  return request({
    url: '/api/data-quality/ruleTemplate/removeRuleTemplates',
    method: 'post',
    params: {
      ids
    }
  })
}

export const removeRuleTemplate = (id) => {
  return request({
    url: '/api/data-quality/ruleTemplate/removeRuleTemplate',
    method: 'post',
    params: {
      id
    }
  })
}
